#ifndef __THREAD__
#define __THREAD__
#include<pthread.h>
#include<iostream>
using std::endl;
using std::cout;
class Thread{
public:
    Thread();
    ~Thread();
    void start();
    void stop();
    //static 没有this指针
    static void* threadFunc(void *args);
    virtual void Run() = 0;
private:
    pthread_t _thid;
    bool isRun;
};
#endif 